package com.neu.smty.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 预约对象 appointment
 *
 * @author liningning
 * @date 2025-10-09
 */
@ApiModel("预约")
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约记录ID */
    @ApiModelProperty("预约记录ID")
    private Long appointmentId;

    /** 预约用户ID */
    @ApiModelProperty("预约用户ID")
    @Excel(name = "预约用户ID")
    private Long userId;

    /** 预约套餐ID */
    @ApiModelProperty("预约套餐ID")
    @Excel(name = "预约套餐ID")
    private Long packageId;

    /** 排班ID */
    @ApiModelProperty("排班ID")
    @Excel(name = "排班ID")
    private Long schedulingId;

    /** 预约日期 */
    @ApiModelProperty(value="预约日期",example = "2021-09-10")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 预约具体时间 */
    @ApiModelProperty(value="预约具体时间",example = "2021-09-10")
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "预约具体时间", width = 30, dateFormat = "HH:mm:ss")
    private Date appointmentTime;

    /** 预约状态 (0-未预约, 1-已预约) */
    @ApiModelProperty("预约状态 (0-未预约, 1-已预约)")
    @Excel(name = "预约状态 (0-未预约, 1-已预约)")
    private Integer appointmentStatus;

    // 关联字段 - 用户信息
    @ApiModelProperty("用户姓名")
    @Excel(name = "用户姓名")
    private String userName;

    @ApiModelProperty("用户电话")
    @Excel(name = "用户电话")
    private String userPhone;

    @ApiModelProperty("用户身份证")
    @Excel(name = "用户身份证")
    private String idCard;

    // 关联字段 - 套餐信息
    @ApiModelProperty("套餐名称")
    @Excel(name = "套餐名称")
    private String packageName;

    @ApiModelProperty("套餐价格")
    @Excel(name = "套餐价格")
    private Double packagePrice;

    // 关联字段 - 排班信息
    @ApiModelProperty("医生姓名")
    @Excel(name = "医生姓名")
    private String doctorName;

    @ApiModelProperty("医生职称")
    @Excel(name = "医生职称")
    private String doctorTitle;

    @ApiModelProperty("科室名称")
    @Excel(name = "科室名称")
    private String departmentName;

    @ApiModelProperty("体检项目")
    @Excel(name = "体检项目")
    private String projectName;

    @ApiModelProperty("时间段")
    @Excel(name = "时间段")
    private Integer timeSlot;

    public void setAppointmentId(Long appointmentId)
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId()
    {
        return appointmentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setPackageId(Long packageId)
    {
        this.packageId = packageId;
    }

    public Long getPackageId()
    {
        return packageId;
    }
    public void setSchedulingId(Long schedulingId)
    {
        this.schedulingId = schedulingId;
    }

    public Long getSchedulingId()
    {
        return schedulingId;
    }
    public void setAppointmentDate(Date appointmentDate)
    {
        this.appointmentDate = appointmentDate;
    }

    public Date getAppointmentDate()
    {
        return appointmentDate;
    }
    public void setAppointmentTime(Date appointmentTime)
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime()
    {
        return appointmentTime;
    }
    public void setAppointmentStatus(Integer appointmentStatus)
    {
        this.appointmentStatus = appointmentStatus;
    }

    public Integer getAppointmentStatus()
    {
        return appointmentStatus;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Double getPackagePrice() {
        return packagePrice;
    }

    public void setPackagePrice(Double packagePrice) {
        this.packagePrice = packagePrice;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDoctorTitle() {
        return doctorTitle;
    }

    public void setDoctorTitle(String doctorTitle) {
        this.doctorTitle = doctorTitle;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getTimeSlot() {
        return timeSlot;
    }

    public void setTimeSlot(Integer timeSlot) {
        this.timeSlot = timeSlot;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("appointmentId", getAppointmentId())
                .append("userId", getUserId())
                .append("packageId", getPackageId())
                .append("schedulingId", getSchedulingId())
                .append("appointmentDate", getAppointmentDate())
                .append("appointmentTime", getAppointmentTime())
                .append("appointmentStatus", getAppointmentStatus())
                .append("userName", getUserName())
                .append("userPhone", getUserPhone())
                .append("idCard", getIdCard())
                .append("packageName", getPackageName())
                .append("packagePrice", getPackagePrice())
                .append("doctorName", getDoctorName())
                .append("doctorTitle", getDoctorTitle())
                .append("departmentName", getDepartmentName())
                .append("projectName", getProjectName())
                .append("timeSlot", getTimeSlot())
                .toString();
    }
}
